"""
WSGI config for backend project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

import os  # 导入os模块

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'application.settings')  # 设置环境变量，指定Django的settings模块
# os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"  # 设置环境变量，允许异步操作

from django.core.wsgi import get_wsgi_application  # 从django.core.wsgi模块导入get_wsgi_application函数

application = get_wsgi_application()  # 获取WSGI应用实例
